<template>
  <div class="my-income-layout">
    <snackbar style-color="#4A4A4A" back-color="#C5E7BA" status-color="#ffffff" rightText="编辑资料" leftText="设置"
      :fixed="true">
    </snackbar>
    <div class="maxDiv">
      <div class="avatarBackgorundImg">
        <div class="backgorundImg">
          <div class="avatar">
            <div class="avatarImg"><img class="img1" src="../../assets/image/touxiang@2x.png" />
            </div>
            <div class="name">欧阳娜娜</div>
            <div class="userId">ID:12345</div>
          </div>
        </div>
      </div>
      <div class="function">
        <div>
          <div><img src="../../assets/image/rectangle@2x.png">
            <div>我的车辆</div>
          </div>
          <div><img src="../../assets/image/RectangularBackup@2x.png">
            <div>订单</div>
          </div>
          <div><img class="pic1" src="../../assets/image/rectangle@2x.png" />
            <div>我的收入</div>
          </div>
        </div>
      </div>
      <div class="grayLine"></div>
      <div class="SetUp">
        <div>
          <div class="SetUpName">车辆二维码</div>
          <div class="arrowhead">
            <img class="imgSrc" src="../../assets/image/icon_right1.png">
          </div>
        </div>
        <div>
          <div class="SetUpName">密码设置</div>
          <div class="arrowhead">
            <img class="imgSrc" src="../../assets/image/icon_right1.png">
          </div>
        </div>
        <div>
          <div class="SetUpName">问题反馈</div>
          <div class="arrowhead">
            <img class="imgSrc" src="../../assets/image/icon_right1.png">
          </div>
        </div>
        <div>
          <div class="SetUpName">关于我们</div>
          <div class="arrowhead">
            <img class="imgSrc" src="../../assets/image/icon_right1.png">
          </div>
        </div>
        <div>
          <div class="SetUpName">版本</div>
          <div class="version">v1.0.0</div>
        </div>
      </div>
      <div class="SignOut">
        <div class="SignOutA">退出登录</div>
      </div>
    </div>

    <div class="bottom-layout">
      <div class="rests-btn">
        <div class="rests-img">
          <img src="../../assets/image/homepage.png" />
        </div>
        <div class="rests-text">
          <span>首页</span>
        </div>
      </div>

     <div class="rests-btn">
       <div class="rests-img">
         <img src="../../assets/image/Collection.png" />
       </div>
       <div class="rests-text">
         <span>发现</span>
       </div>
     </div>
     <div class="rests-btn">
       <div class="rests-img">
         <img src="../../assets/image/myl.png" />
       </div>
       <div class="rests-text">
         <span style="color: #1AFA29;">我的</span>
       </div>
     </div>
    </div>
    <div class="btm">
      <button type="button">退出登录</button>
    </div>
  </div>
</template>

<script>
  export default {
    name: 'income',
    data() {
      return {
        active: null
      }
    }
  }
</script>

<style lang="scss" scoped>
  .snackbarLayout {
    height: auto !important;
  }

  .my-income-layout {
    .top-layout {
      display: flex;
      flex-direction: row;
      align-items: center;
      border-bottom: 1px solid rgba(219, 219, 219, 0.5);
      width: 100vw;
      background-color: #FFFFFF;

      .tebs-layout {
        width: 100vw;
      }
    }

    .bottom-layout {
      position: fixed;
      bottom: 0px;
      width: 100vw;
      height: 47px;
      display: flex;
      flex-direction: row;


      .rests-btn {
        width:33.33%;
        height: 47px;
        background: #FFFFFF;
        display: flex;
        // flex-direction: row;
        flex-wrap:wrap;
        justify-content: center;
        // align-items: center;
        border-top: 1px solid rgba(221, 220, 220, 0.5);
        font-size: 14px;
        color: #bfbfbf;
        .rests-img{
          width: 100%;
          display: flex;
          align-items: center;
          justify-content: center;
          img{
            height: 20px;
            width: 20px;
          }
        }
        .rests-text{
          align-items: center;
          width: 100%;
          display: flex;
          justify-content: center;
        }
      }
    }
    .btm{
      width: 100%;
      margin: 20% auto;
    }
  }

  //
  .maxDiv {
    margin: 1.314286rem auto 0px auto;
    width: 100%;
    background-color: #FFFFFF;
  }

  .avatarBackgorundImg{
    width: 100%;
    height: 29.1vh;
    position: relative;
  }

  .backgorundImg {
    width: 100%;
    height: 100%;
    // border-radius: 0 0 20% 40%;
    position: absolute;
    // left: -31%;
    background-repeat:no-repeat;
    background-size:100% 100%;
    background-image: url(../../assets/image/Interface.png);
  }

  .avatar {
    padding-top: 5vh;
    margin: 0 auto;
    width: 21%;
    height: 18vh;
  }

  .avatarImg {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    margin: 0px auto;
  }

  .img1 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
  }

  .name {
    width: 100%;
    height: 21%;
    font-size: 18px;
    text-align: center;
    margin: 13px 0px 3.5px 0px;
    color: rgba(58, 58, 58, 1);
  }

  .userId {
    width: 82.5%;
    height: 18%;
    font-size: 14px;
    text-align: center;
    margin: 0px auto;
    color: rgba(0, 0, 0, 0.5);
  }

  .function {
    width: 100%;
    height: 21.6vh;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-direction: column;
  }

  .function>div {
    width: 100%;
    height: 9.3vh;
  }

  .function>div>div {
    width: 33.333%;
    height: 9.3vh;
    float: left;
  }

  .function>div>div>img {
    width: 27px;
    height: 25px;
    margin-bottom: 2vh;
  }

  .function>div>div>div {
    color: rgba(132, 197, 114, 1);
  }

  .grayLine {
    background-color: rgba(232, 232, 232, 1);
    height: 8px;
    width: 100%;
  }

  .SetUp {
    width: 100%;
    height: 38.24vh;
    overflow: hidden;
  }

  .SetUp>div {
    height: 19.5%;
    width: 100%;
    border-bottom: 0.3px solid rgb(206, 206, 206);
    display: flex;
  }

  .SetUpName {
    height: 100%;
    width: 88%;
    font-size: 14px;
    line-height: 50px;
    padding: 0px 0px 0px 5.8%;
    color: rgba(58, 58, 58, 1);
  }

  .arrowhead {
    width: 20px;
    height: 20px;
    margin: auto 0;

    .imgSrc {
      width: 100%;
      height: 100%;
    }
  }

  .version {
    margin: 14px 12px 0px 0px;
    font-size: 14px;
    color: rgba(58, 58, 58, 1);
  }

  .SignOut {
    width: 100%;
    height: 35px;
    margin-top: 7.3%;
  }

  .SignOutA {
    width: 34.8%;
    height: 100%;
    text-align: center;
    margin: 0px auto;
    border: 0.5px solid rgba(151, 151, 151, 1);
    border-radius: 3px;
    line-height: 35px;
    color: rgba(0, 0, 0, 0.5);
  }
</style>
